<?php

include('main.php');

if ($this->session->userdata['user_login']) {
    if ($reply_detail->num_rows() > 0) {
        foreach ($reply_detail->result() as $row) {
            echo "<div class='well'>";
            echo "<h4>Your previous replied</h4>";
            echo "<label class='control-label'><strong>Title:</strong> " . $row->rep_title . "<br /></label>";
            echo "<label class='control-label'><strong>Content:</strong> " . $row->rep_content . "<br /></label>";
            echo "<label class='control-label'><strong>Posted date:</strong> " . $row->rep_dated . "<br /></label>";
            echo '<a href=' . site_url('act/activity') . '>Back</a>';

            echo "</div>";
        }
    } else {
        echo "<h3>No record found</h3>";
    }
} else {
    echo base_url();
}
?>

